#
# Simple test class module for trying some things
# out with boost.python
#
#import pychecker.checker;
import os;
import sys;
import traceback;


class PointClass:
   def __init__(self):
      self.x = 0.0;
      self.y = 0.0;

   def printData(self):
      print "Point: %s, %s" % (self.x, self.y);

   def setX(self,nx):
      self.x = float(nx);

   def setY(self,ny):
      self.y = float(ny);

class TestClass:
   def __init__(self, name):
      self.name = name;
      self.pt = None;

   def printName(self):
      print "Name: %s" % (self.name,)

   def printData(self):
      self.printName();
      print "pt: ",
      if(self.pt):
         self.pt.printData();
      else:
         print "None";

   def setPoint(self, point):
      self.pt = point;

#
# "Main" function
#
if __name__ == "__main__":
   test_obj = TestClass("test object");
   test_obj.printName();
   test_obj.printData();
   test_point = PointClass();
   test_point.printData();
   test_point.setX(10.0);
   test_point.setY(20.0);
   test_point.printData();
   test_obj.setPoint(test_point);
   test_obj.printData();
   print "\n---------- Done -----------"
